Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll-y menus #62819

Merged
merged 4 commits into from
Nov 26, 2018
Merged

Scroll-y menus #62819

merged 4 commits into from
Nov 26, 2018

Conversation

sbatten
Copy link
Member

@sbatten sbatten commented Nov 8, 2018

When a menu is created, set a max height and use scrollable element. There is room for improvement but this only takes a visible effect when needed and in that case, it is certainly better than the current situation.

Not having used the scrollableelement class before and due the strange behavior of overflow with regards to submenus, please review carefully.

fixes #52533

Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually seems to work quite well.

@bpasero bpasero added this to the November 2018 milestone Nov 18, 2018
@bpasero
Copy link
Member

bpasero commented Nov 20, 2018

@sbatten please bring up to date with master

@joaomoreno
Copy link
Member

joaomoreno commented Nov 20, 2018

@bpasero You can test this by running the following command, without waiting for @sbatten to merge master:

git fetch origin pull/62819/head:pr/62819 && git co pr/62819

@bpasero
Copy link
Member

bpasero commented Nov 20, 2018

Yeah possibly, but I prefer to apply the changes on top of master. And besides, there is a merge conflict too.

@sbatten
Copy link
Member Author

sbatten commented Nov 20, 2018

@bpasero updated and conflicts resolved

Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sbatten yeah works nicely, some feedback:

  • looks like the onscroll emitter is never disposed
  • the scrollbar is a bit hard to see in high contrast themes (see below)
  • the scrollbar should probably always be visible even when the mouse is not over the menu for accessibility reasons (see how quick open always shows a scrollbar)
  • the scrollbar does not update its position when I navigate using the keyboard

image

@bpasero bpasero assigned sbatten and unassigned bpasero Nov 21, 2018
@sbatten sbatten merged commit ce8cd13 into microsoft:master Nov 26, 2018
@sbatten sbatten deleted the scrollableMenus branch November 26, 2018 19:40
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context menus do not overflow
3 participants